<extend name="Public/base"/>

<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
	<div class="main-title">
		<h2>{:isset($info['id'])?'编辑':'新增'}项目</h2>
	</div>
	<div class="tab-wrap">
		<ul class="tab-nav nav">
			<li data-tab="tab1" class="current"><a href="javascript:void(0);">基 础</a></li>
		</ul>
		<div class="tab-content">
			<form action="{:U()}" method="post" class="form-horizontal"> 
				<!-- 基础 -->
				<div id="tab1" class="tab-pane in tab1">  
					<div class="form-item">
						<label class="item-label">
							项目名称<span class="check-tips">（请输入项目名称）</span>
						</label>
						<div class="controls">
							<input type="text" name="title" class="text input-large" value="{$info.title|default=''}" placeholder="请输入项目名称">
						</div>
					</div>   
					<div class="form-item">
						<label class="item-label">
							佣金<span class="check-tips">（请输入佣金）</span>
						</label>
						<div class="controls">
							<input type="text" name="yongjin" class="text input-large" value="{$info.yongjin|default=''}" placeholder="请输入佣金">
						</div>
					</div>   
					<div class="form-item">
						<label class="item-label">
							排序<span class="check-tips">（排序从小到大）</span>
						</label>
						<div class="controls">
							<input type="text" name="sort" class="text input-small" value="{$info.sort|default='0'}">  
						</div>
					</div>  
					<div class="form-item">
						<label class="item-label">状态<span class="check-tips">（1-可用，0-禁用）</span></label>
						<div class="controls"> 
							<input type="text" name="status" class="text input-large" value="{$info.status|default='1'}"> 
						</div>
					</div>
				</div> 
				 
				<div class="form-item">
					<input type="hidden" name="id" value="{$info.id|default=''}"> 
					<button type="submit" id="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
					<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
		</form>
		</div>
	</div> 
</block>

<block name="script">
	<script type="text/javascript"> 
		//导航高亮
		highlight_subnav('{:U("project")}'); 
	</script>
</block>
